package com.egao.orderB.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.egao.common.core.damon.results.Entity;
import com.egao.common.core.damon.utils.Utils;

/**
 *
 * 实现类
 * @author : Doman
 * @date : 2020-06-15 16:11:54
 * @version ：1.0
 */
@TableName("chf_bill_fee")
public class BillFee extends Entity implements Cloneable {

	private static final long serialVersionUID = 1L;

	private String billId;//订单id
	private String type;//类型
	private String feeName;//费用名称
	private String price;//金额
	private String priceNoTax;//金额
	private String feeState;//费用状态:未确认,已确认
	private String feePerson;//确认人
	private String feeTime;//确认时间
	private String standard;//标准
	private String fobject;//费用对象 货代,司机,码头
	private String feeModules;//模块 运费,提进,其他,单项,采购,报关费,易港通,财务报销
	private String invoiceid;//抬头id
	private String invoicenum;//税率
	private String invoicename;//抬头
	private String driverName;//司机名称
	private String invoicestate;//是否开票:开票1 不开票0
	private String currency;//币种
	private String exchangeRate;//汇率
	private String settlement;//销账完成度:  0未销账 1部分 2全部
	private String settlementPrice;//销账剩余金额
	private String remark;//备注
	private String boxType;//箱型 查询使用数据库里没有
	private String ysTotalNoTax;//应收不含税 数据库里没有
	private String yfTotalNoTax;//应付不含税 数据库里没有
	private boolean state;//默认传一个false到前台 数据库里是没有的

	private String packDate;//装箱时间 数据库里没有
	private String billOfLading;//提单号 数据库里没有
	private String boxNum;//提单号 数据库里没有



	public String getPackDate() {
		return packDate;
	}

	public void setPackDate(String packDate) {
		this.packDate = packDate;
	}

	public String getBillOfLading() {
		return billOfLading;
	}

	public void setBillOfLading(String billOfLading) {
		this.billOfLading = billOfLading;
	}

	public String getBoxNum() {
		return boxNum;
	}

	public void setBoxNum(String boxNum) {
		this.boxNum = boxNum;
	}

	public String getInvoicenum() {
		return invoicenum;
	}

	public void setInvoicenum(String invoicenum) {
		this.invoicenum = invoicenum;
	}

	public String getFeeModules() {
		return feeModules;
	}

	public void setFeeModules(String feeModules) {
		this.feeModules = feeModules;
	}
	public String getFeeModules2() {
		if (Utils.isNotEmpty(feeModules)) {
			if(feeModules.equals("运费")) {
				return "c运费";
			} else if(feeModules.equals("提进")) {
				return "f提进";
			} else if(feeModules.equals("其他")) {
				return "i其他";
			} else if(feeModules.equals("单项")) {
				return "l单项";
			} else if(feeModules.equals("采购")) {
				return "o采购";
			} else if(feeModules.equals("报关费")) {
				return "r报关费";
			} else if(feeModules.equals("易港通")) {
				return "u易港通";
			} else if(feeModules.equals("财务报销")) {
				return "w财务报销";
			}
		}
		return feeModules;
	}

	public void setFeeModules2(String feeModules) {
		if (Utils.isNotEmpty(feeModules)) {
			if (feeModules.equals("c运费")) {
				this.feeModules = "运费";
			} else if (feeModules.equals("f提进")) {
				this.feeModules = "提进";
			} else if (feeModules.equals("i其他")) {
				this.feeModules = "其他";
			} else if (feeModules.equals("l单项")) {
				this.feeModules = "单项";
			} else if (feeModules.equals("o采购")) {
				this.feeModules = "采购";
			} else if (feeModules.equals("r报关费")) {
				this.feeModules = "报关费";
			} else if (feeModules.equals("u易港通")) {
				this.feeModules = "易港通";
			} else if (feeModules.equals("w财务报销")) {
				this.feeModules = "财务报销";
			}
		}
		this.feeModules = feeModules;
	}

	public String getPriceNoTax() {
		return priceNoTax;
	}

	public void setPriceNoTax(String priceNoTax) {
		this.priceNoTax = priceNoTax;
	}

	public String getYsTotalNoTax() {
		return ysTotalNoTax;
	}

	public void setYsTotalNoTax(String ysTotalNoTax) {
		this.ysTotalNoTax = ysTotalNoTax;
	}

	public String getYfTotalNoTax() {
		return yfTotalNoTax;
	}

	public void setYfTotalNoTax(String yfTotalNoTax) {
		this.yfTotalNoTax = yfTotalNoTax;
	}

	public String getSettlement() {
		return settlement;
	}

	public void setSettlement(String settlement) {
		this.settlement = settlement;
	}

	public String getSettlementPrice() {
		return settlementPrice;
	}

	public void setSettlementPrice(String settlementPrice) {
		this.settlementPrice = settlementPrice;
	}

	public String getDriverName() {
		return driverName;
	}

	public void setDriverName(String driverName) {
		this.driverName = driverName;
	}

	public String getInvoiceid() {
		return invoiceid;
	}

	public void setInvoiceid(String invoiceid) {
		this.invoiceid = invoiceid;
	}

	public String getInvoicename() {
		return invoicename;
	}

	public void setInvoicename(String invoicename) {
		this.invoicename = invoicename;
	}

	public String getInvoicestate() {
		return invoicestate;
	}

	public void setInvoicestate(String invoicestate) {
		this.invoicestate = invoicestate;
	}

	public String getCurrency() {
		return currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	public String getExchangeRate() {
		return exchangeRate;
	}

	public void setExchangeRate(String exchangeRate) {
		this.exchangeRate = exchangeRate;
	}

	public String getFobject() {
		return fobject;
	}

	public void setFobject(String fobject) {
		this.fobject = fobject;
	}

	public String getFeePerson() {
		return feePerson;
	}

	public void setFeePerson(String feePerson) {
		this.feePerson = feePerson;
	}

	public String getFeeTime() {
		return feeTime;
	}

	public void setFeeTime(String feeTime) {
		this.feeTime = feeTime;
	}

	public String getFeeState() {
		return feeState;
	}

	public void setFeeState(String feeState) {
		this.feeState = feeState;
	}

	public String getStandard() {
		return standard;
	}

	public void setStandard(String standard) {
		this.standard = standard;
	}

	public String getBoxType() {
		return boxType;
	}

	public void setBoxType(String boxType) {
		this.boxType = boxType;
	}

	public boolean isState() {
		return state;
	}

	public void setState(boolean state) {
		this.state = state;
	}

	public String getBillId() {
		return billId;
	}
	public void setBillId(String billId) {
		this.billId = billId;
	}
    public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
    public String getFeeName() {
		return feeName;
	}
	public void setFeeName(String feeName) {
		this.feeName = feeName;
	}
    public String getPrice() {
		return price;
	}
	public void setPrice(String price) {
		this.price = price;
	}
    public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Override
	public Object clone() {
		BillFee stu = null;
		try{
			stu = (BillFee)super.clone();
		}catch(CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return stu;
	}
}